Experiments
Now that you have the working toolchain, you can do some playing around:
- Experiment with the clang pass system and optimization levels.
- Experiment with linking different libraries to your file.
- Experiment with how different optimizations on your files influences their gem5 results.
This is also the gateway to cross compiling larger software systems written in C and C++. You might even consider looking at the embedded community for some cool ideas on how to most effectively use this.